/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jeff.springmvcstudy.mvc;

import com.jeff.springmvcstudy.interceptor.ControllerInterceptor2;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * No use?
 * @author winnie
 */
@EnableWebMvc
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter{

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new ControllerInterceptor2()).addPathPatterns("/hello/intercepted/2");
    }
    
}
